﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace docent
{
    public class Document : List<Document>
    {
        public long ID { get; set; }
        public string Name { get; set; }
        public long OwnerID { get; set; }
        public FlowState FlowState { get; set; }

        public Document() { }
        public Document(long id, string name, params Document[] children)
        {
            ID = id;
            Name = name;
            OwnerID = -1;
            FlowState = FlowState.BeWritten;

            foreach (Document document in children)
            {
                Add(document);
            }
        }
    }
}
